import { defineConfig } from 'umi';
import proxy from './proxy';
import routes from './routes';
import theme from './theme';
export default defineConfig({
  hash: true,
  nodeModulesTransform: {
    type: 'none',
  },
  fastRefresh: {},
  proxy,
  antd: {},

  webpack5: {},
  dynamicImport: {},
  history: {
    type: 'browser',
  },
  locale: {
    default: 'zh-CN',
    antd: true,
  },
  routes,
  theme,
  exportStatic: {},
  themeConfig: {
    hd: {
      rules: [],
      // 更多 rule 配置访问 https://github.com/umijs/dumi/blob/master/packages/theme-mobile/src/typings/config.d.ts#L7
    },
  },
});
